package com.sc.nft.admin.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;


@Data
public class UpdatePledgeTaskRequest {

    @ApiModelProperty(value = "活动id")
    @NotNull(message = "活动id不能为空")
    private Long id;

    @ApiModelProperty(value = "活动名称 默认值空字段串")
    private String pledgeName;

    @ApiModelProperty(value = "活动封面 默认值空字段串")
    private String activityCover;

    @ApiModelProperty(value = "活动详情图片 默认值空字段串")
    private String activityDetailsImage;

    @ApiModelProperty(value = "活动规则 默认值空字段串")
    private String ruleSpecification;

    @ApiModelProperty(value = "开始时间 默认值空字段串")
    private String beginTime;

    @ApiModelProperty(value = "结束时间 默认值空字段串")
    private String endTime;

    @ApiModelProperty(value = "质押上限")
    @NotNull(message = "质押上限不能为空")
    @Range(min = 1,max = 999999,message = "质押上限不能小于1")
    private Integer upperLimit;

    @ApiModelProperty(value = "个人上限")
    @NotNull(message = "质押上限不能为空")
    @Range(min = 1,max = 999999,message = "质押上限不能小于1")
    private Integer userCount;

    @ApiModelProperty(value = "是否显示剩余数量")
    private Boolean isShow;

    @ApiModelProperty("展示位置")
    @NotNull(message = "展示位置不能为空")
    private Long showLocationDaoId;
}
